package com.liaowei.post.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liaowei.model.domain.Post;
import com.liaowei.model.vo.PostVO;
import com.liaowei.post.model.param.PostPageParam;

import java.util.List;

/**
* @author LindaMan
* @description 针对表【wy_post(帖子表)】的数据库操作Mapper
* @createDate 2023-05-11 08:31:59
* @Entity com.liaowei.post.model.domain.Post
*/
public interface PostMapper extends BaseMapper<Post> {

    // 条件分页查询
    List<Post> selectPostPage(PostPageParam pageParam);
    int selectPostCount(PostPageParam pageParam);

    // 根据id查询articleVO
    PostVO selectPostVOById(Long id);

    // 查询贴吧热议榜
    List<PostVO> selectHotPostList();

}




